﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Default/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Fashion.ViewModels.UserSearchViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	FindUser
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="box">
        <h3>Find User:</h3>
        <table id="searchBox" cellspacing="0" width="100%">
            <tr><td colspan="2"><strong>Advance Search Criteria</strong></td></tr>
            <tr>
	            <td class="title" style="width:100px">Username</td>
	            <td><%: Html.TextBoxFor(model => model.username)%></td>
            </tr>
            <tr>
                <td class="title" style="width:100px">Register From</td>
                <td><%: Html.TextBox("registerDate", "") %></td>
            </tr>
        </table>
        <div align="center">
            <input id="search" type="submit" value="Search" /> 
            <input id="reset" type="reset" />
        </div>
    </div>
    
    <% if ((int)ViewData["totalUsers"] == 0)
       { %>
    <% }
       else
       { %>    
        <p>Total Found Users: <strong><%= ViewData["totalUsers"] %></strong></p>
        <div id="box">
            <% foreach (var user in Model.Users)
               { %>
            <div class="item">
                <p>
                     <%: Html.ActionLink(user.Username, "UserDetail", new {uid = user.UserID } ) %>
                </p>
            </div>
        <% } %>
        </div>
        <br />
        <% if ((string)ViewData["pageLinks"] != "")
           { %>
           <%= ViewData["pageLinks"] %>
           <br /><br />
        <% } %>       
    <% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Submenu" runat="server">
</asp:Content>
